package com.six.firstpage.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.entity.Notice;
import com.six.firstpage.vo.NoticeVo;
import com.six.firstpage.vo.SearchTime;

import java.util.List;

/**
* @author ZZH
* @description 针对表【acl_notice】的数据库操作Service
* @createDate 2023-02-27 10:21:18
*/
public interface NoticeService extends IService<Notice> {

    //查询所有公告
    List<Notice> getAllNotice();

    //根据时间查找
    IPage<NoticeVo> getNoticeByTime(NoticeVo noticeVo, Integer current, Integer pageSize);

    //添加公告
    Integer addNotice(Notice notice);

    //修改公告
    Integer updateNotice(Notice notice);

    //逻辑删除公告
    Integer delNotice(Integer id);
}
